MACH_SWAPON
Section: System Calls (2)
Updated: March 1, 1989
Index
Return to Main Contents
NAME
mach_swapon - add a file for system paging/swapping.
SYNOPSIS
#include <sys/mach_swapon.h>
mach_swapon(file, flags, lowat, hiwat)
char *file;
unsigned int flags;
int lowat;
int hiwat;
DESCRIPTION
Mach_swapon
makes
file
available to the system for paging and swapping. The available
flags
are:
- MF_PREFER
-
This is a "preferred" paging file which means that space will
be allocated out of it before non-preferred paging files until
it is full.
Lowat
specifies the low water mark for the file's size. If it is non-zero,
pager will attempt to shrink the size of the file down to the
low water mark as it frees paging resources. If it is zero, the file
will never shrink.
Hiwat
specifies the high water mark for the file's size. If it is non-zero,
the pager will not allow the paging file to grow above the high
water mark. If it is zero, the file will grow as large as need be.
RETURN VALUE
If an error has occured,
mach_swapon
will return the error number, otherwise it will return 0.
SEE ALSO
mach_swapon(8)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 17:22:48 GMT, March 25, 2025